package com.elderly.utils;

import com.github.tobato.fastdfs.service.FastFileStorageClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;

/**
 * @Description 文件上传公共处理
 * @Date 2021/10/5 9:19
 * @Created 30500
 */
@Component
public class DFSUtils {
    /**
     * 日志记录
     */
    private static final Logger LOGGING = LoggerFactory.getLogger(DFSUtils.class);

    /**
     * 工具方法完成文件上下传
     */
    @Resource
    private FastFileStorageClient storageClient;

    /**
     * @description 文件上传
     * @author 30500
     * @date 2021/10/5 9:23
     * @type [org.springframework.web.multipart.MultipartFile 上传的文件信息]
     * @return java.lang.String
     */
    public String uploadFile(MultipartFile file) {
        return null;
    }

    /**
     * @description 文件删除
     * @author 30500
     * @date 2021/10/5 9:25
     * @type [java.lang.String]
     * @return java.lang.String
     */
    public String deleteFile(String fileName) {
        return null;
    }
}
